package com.mdd.front.convert;

import com.mdd.common.entity.article.ArticleCategory;
import com.mdd.front.vo.article.ArticleCateVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ArticleCategoryConvert {

    ArticleCategoryConvert INSTANCE = Mappers.getMapper(ArticleCategoryConvert.class);

    /**
     * 转换对象
     * @param obj
     * @return
     */
    ArticleCateVo convertObj(ArticleCategory obj);

    /**
     * 转换list
     * @param list
     * @return
     */
    List<ArticleCateVo> convertList(List<ArticleCategory> list);

}
